Shader "HiZ/HiZtex"
{
    Properties
    {
        _MainTex("Base (RGB)", 2D) = "white" {}
    }
    SubShader
    {
        Cull Off 
        ZWrite Off
        ZTest Always
        //blit
        Pass
        {
            CGPROGRAM
            #pragma target 4.5
            #pragma vertex vert
            #pragma fragment blit
            #include "IncludeHiZ.cginc"
            ENDCG
        }
        //reduce
        Pass
        {
            CGPROGRAM
            #pragma target 4.5
            #pragma vertex vert
            #pragma fragment reduce
            #include "IncludeHiZ.cginc"
            ENDCG
        }

    }
    FallBack "Diffuse"
}
